<h1>Listing phone_entries</h1>

<table>

  
<% for phone_entry in @phone_entries %>
  <tr>
  <!--<% for column in PhoneEntry.content_columns %>
    <td><%=h phone_entry.send(column.name) %></td>
  <% end %>-->
    <td><div id="edit<%=phone_entry.id%>"><%=link_to_remote(phone_entry.phone_entry, :update =>'edit'+phone_entry.id.to_s, :url =>{:action =>:ajax_edit, :id => phone_entry })%></div >
    
</td>
    <!--<td><%= link_to 'Destroy', { :action => 'destroy', :id => phone_entry }, :confirm => 'Are you sure?', :post => true %></td>-->
    <td><%= link_to 'Call', { :action => 'destroy', :id => phone_entry }, :post => true %></td>
  </tr>
<% end %>
</table>

<div id="mydiv"><%=link_to_remote("Add new phone entry.", :update =>'mydiv', :url =>{:action =>:ajax_create })%></div >


<%= link_to 'Previous page', { :page => @phone_entry_pages.current.previous } if @phone_entry_pages.current.previous %>
<%= link_to 'Next page', { :page => @phone_entry_pages.current.next } if @phone_entry_pages.current.next %> 

<br />


